unit F_Loading_Document;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, JvExControls, JvWaitingGradient, ExtCtrls, ComCtrls,
  JvExComCtrls, JvProgressBar, JvDBProgressBar, AdvCircularProgress;

type
  TF_LoadDocument = class(TForm)
    Label_Texto: TLabel;
    Image: TImage;
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
  private
    { Private declarations }
    procedure CreateParams(var Params: TCreateParams); override;
  public
    { Public declarations }
  end;

implementation

{$R *.dfm}

procedure TF_LoadDocument.CreateParams(var Params: TCreateParams);
begin
  inherited CreateParams(Params);
  with Params do begin
    Style := (Style OR WS_POPUP) AND (NOT WS_DLGFRAME);
    // Form "Stay on Top"
    ExStyle := ExStyle or WS_EX_TOPMOST;
    WndParent := GetDesktopwindow;
  end;
end;

procedure TF_LoadDocument.FormClose(Sender: TObject; var Action: TCloseAction);
begin
  Action := caFree;
end;

end.
